﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Entities;
using Data;
namespace Business
{
  public  class NguoiDungService
    {
      public static List<NguoiDungDTO> GetNguoiDungList()
      {
          return NguoiDungRepository.GetNguoiDungList();
      }
      public static DataTable GetNguoiDungTable()
      {
          return ConvertTo.DataTable(NguoiDungRepository.GetNguoiDungList());
      }
      public static NguoiDungDTO GetNguoiDung(string tenDangNhap)
      {
          return NguoiDungRepository.GetNguoiDungByTenDangNhap(tenDangNhap);
      }
      public static void Update(NguoiDungDTO nguoiDung)
      {
          NguoiDungRepository.Update(nguoiDung);
      }
      public static void Insert(NguoiDungDTO nguoiDung)
      {
          NguoiDungRepository.Insert(nguoiDung);
      }
      public static void Delete(string tenDangNhap)
      {
          NguoiDungRepository.Delete(tenDangNhap);
      }
    }
}
